package com.hzncc.scaffold.mapper;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.hzncc.scaffold.core.ResultT;
import com.hzncc.scaffold.entity.Bo.ExamineeBo;
import com.hzncc.scaffold.entity.Other.Examineeapply;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>
 * 考生申请表 Mapper 接口
 * </p>
 *
 * @author DrunkBear
 * @since 2022-04-27
 */
public interface ExamineeapplyMapper extends BaseMapper<Examineeapply> {

    @Select("SELECT\n" +
            "\texamineeapply.*,\n" +
            "\t`user`.realname \n" +
            "FROM\n" +
            "\t`examineeapply`\n" +
            "LEFT JOIN `user` ON examineeapply.userId = `user`.id ${ew.customSqlSegment}")
    public List<ExamineeBo> listBo(@Param(Constants.WRAPPER) QueryWrapper queryWrapper);
}
